package com.example.demo.mapper;

import com.example.demo.entity.ShoppingCart;
import com.example.demo.entity.vo.ShoppingCartVo;

import java.util.List;

public interface ShoppingCartMapper {

    ShoppingCart select1(Long userId, Long productId);

    int create(Long userId , Long productId);

    int update(Long userId , Long productId,Long num);

    List<ShoppingCartVo> select2(Long userId);

    int reviseNum(Long shoppingCartId , Long num) ;

    int delete(Long shoppingCartId);

    int count(Long userId);
}
